<h1>Listing categories_items</h1>

<table>
  <tr>
    <th>User</th>
    <th>Category</th>
    <th>Number</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @categories_items.each do |categories_item| %>
  <tr>
    <td><%= categories_item.user_id %></td>
    <td><%= categories_item.category_id %></td>
    <td><%= categories_item.number %></td>
    <td><%= link_to 'Show', categories_item %></td>
    <td><%= link_to 'Edit', edit_categories_item_path(categories_item) %></td>
    <td><%= link_to 'Destroy', categories_item, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Categories item', new_categories_item_path %>
